/*
 * Text.h
 *
 *  Created on: Sep 4, 2011
 *      Author: Patrick
 */

#ifndef TEXT_H_
#define TEXT_H_

#include "MediaCenter.h"

#define MC_TEXT_ALIGN_LEFT 0
#define MC_TEXT_ALIGN_CENTER 1
#define MC_TEXT_ALIGN_RIGHT 2

#define MC_TEXT_BASELINE_TOP 0
#define MC_TEXT_BASELINE_MIDDLE 1
#define MC_TEXT_BASELINE_BOTTOM 2

struct MCTextObject {
	public:
		char* text;
		TTF_Font* font;
		SDL_Color color;
		GLuint texture;
		short align;
		short baseline;
		int padding;
		int w;
		int h;
};

MCTextObject MCTextCreate(char* text, TTF_Font* font, float r, float g, float b);
void MCTextRender(MCTextObject t, int x, int y);
void MCTextDestroy(MCTextObject t);

#endif /* TEXT_H_ */
